package com.example.demo.service;

import com.example.demo.entity.DefenseGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.model.DefenseGroupDto;

/**
 * <p>
 * 答辩组基本信息表 服务类
 * </p>
 *
 * @author liwei
 * @since 2024-11-15
 */
public interface IDefenseGroupService extends IService<DefenseGroup> {


    /* *
     * @Title: getDefenseGroupById
     * @Author: admin
     * @Date: 2024-11-22 10:57:01
     * @Params: [defenseGroupId] 答辩组编号
     * @Return: DefenseGroupDto
     * @Description:  根据答辩组ID查询答辩组的详细信息
     */
    DefenseGroupDto getDefenseGroupById(Long defenseGroupId);

    /* *
     * @Title: addDefenseGroup
     * @Author: admin
     * @Date: 2024-11-28 10:26:36
     * @Params: [dto]
     * @Return: Boolean
     * @Description: 添加答辩组--带事务
     */
    Boolean addDefenseGroup(DefenseGroupDto dto);

    /* *
     * @Title: deleteDefenseGroup
     * @Author: admin
     * @Date: 2024-11-28 16:48:05
     * @Params: [dto]
     * @Return: Boolean
     * @Description: 删除答辩组--物理删除
     */
    int  deleteDefenseGroup(Long defenseGroupId);
}
